package entity

import (
	"hobby-mate/common"
)

// BannerInfo 轮播信息
type BannerInfo struct {
	BannerId string `json:"bannerId" form:"banner_id"   gorm:"primary_key;comment:轮播信息唯一标识符"`
	Title    string `json:"title" form:"title" gorm:"not null;comment:轮播信息标题"`
	ImageURL string `json:"imageUrl" form:"image_url" gorm:"comment:轮播图片地址"`
	Link     string `json:"link" form:"link" gorm:"comment:轮播信息链接"`
	Type     string `json:"type" form:"type" gorm:"not null;comment:轮播信息类型"`
	common.BaseEntity
}

func (BannerInfo) TableName() string {
	return "t_banner_info"
}
